﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MesBSW.DAL.MesDB
{
    [Table("repair_reason")]
    public class RepairReason
    {
        /// <summary>
        /// ID，主键，自增长
        /// </summary>
        [Column("id"),Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int ID { get; set; }


        /// <summary>
        /// 站点ID
        /// </summary>
        [Column("site_id")]
        public int SiteID { get; set; }

        /// <summary>
        /// 站点名称
        /// </summary>
        [Column("site_name")]
        public string SiteName { get;set; }

        /// <summary>
        /// 原因
        /// </summary>
        [Column("reason")]
        public string Reason { get; set; }


        /// <summary>
        /// 是否失效不用，1代表不再使用，其他值代表可以使用
        /// </summary>
        [Column("is_del")]
        public int IsDel { get; set; }

        /// <summary>
        /// 建档人
        /// </summary>
        [Column("create_user")]
        public string CreateUser { get; set; }

        /// <summary>
        /// 建档日期
        /// </summary>
        [Column("create_date")]
        public DateTime? CreateDate { get; set; }
    }
}
